﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RegexBuilder.Attributes
{
    /// <summary>
    /// 标记枚举值对应的正则字符串
    /// </summary>
    [System.AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
    sealed class RegexStringAttribute : Attribute
    {

        readonly string regexString;

        public RegexStringAttribute(string positionalString)
        {
            this.regexString = positionalString;

        }

        public string RegexString
        {
            get { return regexString; }
        }

    }
}
